package com.um.psystem.service.exService;

import com.um.psystem.model.vo.JsonResult;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @Auther: AiLen2E
 * @Date: 2021/11/2 13:56
 * @version: 1.0
 */
public interface IExceptEventService {

    List<Map<String,Object>> getExceptionEventList(Map map);

    @Transactional
    JsonResult<Integer> deleExceptionEvent(Integer id);
    @Transactional
    JsonResult<Integer> addExceptionEvent(Map map);
    @Transactional
    JsonResult<Integer> editExceptionEvent(Map map);

    List<Map<String,Object>> getExceptionEventDtlList(Map map);

    @Transactional
    JsonResult<Integer> deleExceptionEventDtl(Integer id);
    @Transactional
    JsonResult<Integer> addExceptionEventDtl(Map map);
    @Transactional
    JsonResult<Integer> editExceptionEventDtl(Map map);

    Map<String,Object> getEventByDtlId(Integer id);
    @Transactional
    JsonResult<Integer> setEventState(Integer eid,Integer state);

    Boolean sendRTXNoti(String username);

    void exportExceptionEventData(HttpServletResponse response, Map map);

    JsonResult<Map> getExceptionTypeStatisticalResult(Map map);

    JsonResult<Map> getDeptStatisticalResult(Map map);
}
